package me.spring.cloud.common.components.validator.exception;

import me.spring.cloud.common.components.util.enums.CodedEnum;
import me.spring.cloud.common.components.exception.exceptions.BusinessException;

/**
 * 可以直接抛给用户的业务异常
 * @author luffy
 */
public class FieldBusinessException extends BusinessException {

    private static final long serialVersionUID = -6068665462900220174L;

    public FieldBusinessException(CodedEnum code) {
        super(code,code.getDesc());
    }

    public FieldBusinessException(CodedEnum code, String message) {
        super(code, message);
    }
}
